<script setup>
import {onMounted, ref} from "vue";

const taskList = ref([])

onMounted(() => {
  window.task.getPagedList({}, { pageNum: 1, pageSize: 10 }).then(console.log)
})
</script>

<template>
  <a-layout>
    <a-button type="primary">
      <template #icon>

      </template>
      新增一个任务
    </a-button>
    <a-list :data-source="taskList"></a-list>
  </a-layout>
</template>

<style scoped>

</style>
